4c0edc2b9ddbc8c65cf2aab7cc05b71593b6daf4,org.springframework.web/src/main/java/org/springframework/web/client/RestTemplate.java,RestTemplate,postForLocation,#String#Object#String#,200
Before Change
public URI postForLocation(String url, Object request, String... urlVariables)
throws RestClientException {
checkForSupportedMessageConverter(request.getClass());
HttpHeaders headers =
execute(url, HttpMethod.POST, new PostPutCallback(request), this.headersExtractor, urlVariables);
return headers.getLocation();
After Change
// POST
public URI postForLocation(String url, Object request, String... urlVariables) throws RestClientException {
if (request != null) {
checkForSupportedMessageConverter(request.getClass());
}
HttpHeaders headers =
execute(url, HttpMethod.POST, new PostPutCallback(request), this.headersExtractor, urlVariables);